﻿using System;
using System.Collections.Generic;
using System.Text;

namespace King.Data.Model
{
    /// <summary>
    /// 
    /// </summary>
    public class QcOnePassRate
    {
        /// <summary>
        /// 线别
        /// </summary>
        public string Uda5c { set; get; }
        /// <summary>
        /// 日期
        /// </summary>
        public string Dd { set; get; }
        /// <summary>
        /// 数量
        /// </summary>
        public float Num { set; get; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string QesName { set; get; }
        /// <summary>
        /// 箱型
        /// </summary>
        public string Uda3 { set; get; }
    }

    /// <summary>
    /// 下线合格率
    /// </summary>
    public class OnePassRate
    {
        /// <summary>
        /// 创建日期
        /// </summary>
        public string CreateDate { set; get; }

        /// <summary>
        /// 线别，A,B,C线
        /// </summary>
        public List<LineKinds> LineTypeList { set; get; }
    }

    /// <summary>
    /// 线别
    /// </summary>
    public class LineKinds
    {
        /// <summary>
        /// 产线名称
        /// </summary>
        public string LineName { set; get; }
        /// <summary>
        /// 合格率
        /// </summary>
        public float PassRate { set; get; }
    }


    /// <summary>
    /// 不良率占比
    /// </summary>
    public class DefectiveRatePersentRate
    {
        /// <summary>
        /// 线别名称
        /// </summary>
        public string LineName { set; get; }
        /// <summary>
        /// 线别，A,B,C线
        /// </summary>
        public List<DefectiveDetail> DefectiveDetailList { set; get; }
    }

    public class DefectiveDetail
    {
        /// <summary>
        /// 不良问题描述
        /// </summary>
        public string QesName { set; get; }

        /// <summary>
        /// 占比
        /// </summary>
        public float PersentRate { set; get; }
    }


    /// <summary>
    /// 每日产量
    /// </summary>
    public class YieldPerDay
    {
        /// <summary>
        /// 线别
        /// </summary>
        public string Uda5c { set; get; }
        /// <summary>
        /// 箱型
        /// </summary>
        public string Uda3 { set; get; }

        /// <summary>
        /// 产量
        /// </summary>
        public float Qty { set; get; }

    }

    /// <summary>
    /// 各部件不良昨天占比
    /// </summary>
    public class PartPersent
    {
        /// <summary>
        /// 部件名称
        /// </summary>
        public string Name { set; get; }
        /// <summary>
        /// 不良数量
        /// </summary>
        public float Rate { set; get; }

    }

}
